package com.user.order.controller;


import com.user.order.domain.po.Order;
import com.user.order.service.OrederService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
@RequiredArgsConstructor
public class OrderController {
    private final OrederService orederService;
    @GetMapping
    public Order query(Long id){
        return orederService.query(id);
    }
}
